The Tab View Component > Customizing the Tab View component

 

Customizing the Tab View component

You can customize the appearance of the component by changing the properties of the FStyleFormat object. If you want to change a component's appearance completely, you can reskin it (described below).

 
Modifying FStyleFormat properties

The following table lists FStyleFormat properties you can edit to format the Tab View component. You can change individual elements, or you can set global properties using globalStyleFormat:

Properties

activeDarkShadow

activeFace

activeHighlight3D

activeSeparator

activeShadow

darkShadow

disabledActiveDarkshadow

disabledActiveFace

disabledActiveHighlight3D

disabledActiveSeparator

disabledActiveShadow

disabledFace

disabledHighlight3D

disabledSeparator

disabledShadow

face

highlight3D

separator

shadow

 

Here is an example that uses the FStyleFormat object to set style properties for the Tab View component:

globalStyleFormat.face = 0xCC0000;
globalStyleFormat.shadow = 0x33aa99;
globalStyleFormat.apply();

The tab_example2.fla example file contains an example of using style properties.

For more information about the FStyleFormat object and a list of all its properties, see the FStyleFormat entries in the online ActionScript Dictionary in Macromedia Flash MX.

 
Reskinning the Tab View component

When you add components to a Macromedia Flash document, a Flash UI Components folder is added to the Library panel. That folder contains a subdirectory called Component Skins. Within that subdirectory is a Skins subdirectory for each component that contains user interface elements you can redesign. Editing the skin completely changes the appearance of the component. Change the skin of an instance of a component by selecting the component on the stage and selecting Edit > Edit in Place, or by double-clicking it in the directory in the Library panel.

The assets for the Tab View component are located in the Library panel in the Flash UI Components\Core Assets-Developer Only\FTabView Assets folder.

For more information on customizing component skins, see the Macromedia Flash MX Help (select Help > Using Flash from within the program).